package xzit.gcxy.xxhzx.zhh.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @desc 角色表
 *
 * @author zhh
 */
@Entity
@Table(name="z_teacher_info")
public class TeacherInfoVO extends BaseVO {
	
	/**
	 * 工号
	 */
	@Column(nullable = false, length = 10)
	private String gonghao;
	
	/**
	 * 真实姓名
	 */
	@Column(length = 50)
	private String realname;
	
	/**
	 * 电话
	 */
	@Column(length = 13)
	private String telphone;
	
	/**
	 * 学院
	 */
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "instituteid")
	private InstituteVO institute;
	
	/**
	 * 职务
	 */
	@Column(length = 50)
	private String business;
	
	/**
	 * 其它
	 */
	@Column(length = 50)
	private String other;

	public String getGonghao() {
		return gonghao;
	}

	public void setGonghao(String gonghao) {
		this.gonghao = gonghao;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public InstituteVO getInstitute() {
		return institute;
	}

	public void setInstitute(InstituteVO institute) {
		this.institute = institute;
	}
}
